<template>
    <el-input class="super-item" v-model="searchInfo.age" placeholder="请输入年龄" />
    <el-select class="super-item" v-model="searchInfo.gender" placeholder="请选择性别">
        <el-option value="1">男</el-option>
        <el-option value="2">女</el-option>
    </el-select>
</template>

<script setup name="SuperSearch">
import {ref,reactive} from "vue";
import {ResetProperty} from "hongshu-view";

const searchInfo = reactive({
    age: "",
    gender: "",
})

const getSearchInfo = ()=>{
    // console.log("exec getSearchInfo");
    return {
        ...searchInfo
    }
};

const resetSerachInfo = ()=>{
    // console.log("exec resetSerachInfo");
    ResetProperty(searchInfo);
}

defineExpose({
    getSearchInfo,//高级搜索须导出
    resetSerachInfo,//高级搜索须导出
})

</script>

<style lang="less" scoped>

</style>